# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=udftools
pkgver=2.3
pkgrel=1
arch="all"
url="https://github.com/pali/udftools/"
pkgdesc="Tools for UDF filesystems and DVD/CD-R(W) drives"
license="GPL-2.0-or-later"
makedepends="automake autoconf libtool eudev-dev linux-headers"
source="https://github.com/pali/udftools/releases/download/$pkgver/udftools-$pkgver.tar.gz"
subpackages="$pkgname-doc"
options="!check" # No tests

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	./configure \
		--prefix=/usr

	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="17304264388ae53e348d6aa870f0d23c29477344fee848236b46886c086221941872073974f804c0735eafd0cf9f7acdac7988132f03c0a87dba37467b5bda95  udftools-2.3.tar.gz"
